import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.query',
            defaultMessage: '列表'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.add',
            defaultMessage: '新增'
        }),
        format: '/{0}/add'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    approve: {
        url: '/:id/approve',
        title: formatMessage({
            id: 'routes.approve',
            defaultMessage: '审核'
        }),
        format: '/{0}/approve'
    },
    upload: {
        url: '/:id/upload',
        title: formatMessage({
            id: 'routes.upload',
            defaultMessage: '上传报告和发票'
        }),
        format: '/{0}/upload'
    },
    approveReport: {
        url: '/:id/approveReport',
        title: formatMessage({
            id: 'routes.approveReport',
            defaultMessage: '审核报告和发票'
        }),
        format: '/{0}/approveReport'
    },
    approveFee: {
        url: '/:id/approveFee',
        title: formatMessage({
            id: 'routes.approveFee',
            defaultMessage: '审核发票和费用'
        }),
        format: '/{0}/approveFee'
    },
    register: {
        url: '/:id/register',
        title: formatMessage({
            id: 'routes.register',
            defaultMessage: '登记核销结果'
        }),
        format: '/{0}/register'
    },
});

export default routes;
